home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / checkbox / patches / 0.1-ubuntu2 < prev    next >
Text File  |  2009-11-05  |  242b  |  11 lines

  1. #!/bin/sh
  2.  
  3. config_file="/etc/hwtest.d/$1.ini"
  4.  
  5. if [ "$1" = "hwtest" ]; then
  6.     temp_file=`tempfile -m 0644 -p $1`
  7.  
  8.     awk '{ print }; /transport_url/ { print "timeout = 120" }' <$config_file >$temp_file
  9.     mv -f $temp_file $config_file
  10. fi
  11.